
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>section4 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="section5.html" />
    
    
    <link rel="prev" href="section3.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../chapter1.html">
            
                <a href="../chapter1.html">
            
                    
                    chapter1
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="section1.html">
            
                <a href="section1.html">
            
                    
                    section1
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="section2.html">
            
                <a href="section2.html">
            
                    
                    section2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="section3.html">
            
                <a href="section3.html">
            
                    
                    section3
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.4" data-path="section4.html">
            
                <a href="section4.html">
            
                    
                    section4
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="section5.html">
            
                <a href="section5.html">
            
                    
                    section5
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="section6.html">
            
                <a href="section6.html">
            
                    
                    section6
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="section7.html">
            
                <a href="section7.html">
            
                    
                    section7
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../chapter2.html">
            
                <a href="../chapter2.html">
            
                    
                    chapter2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../chapter3.html">
            
                <a href="../chapter3.html">
            
                    
                    chapter3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../chapter4.html">
            
                <a href="../chapter4.html">
            
                    
                    chapter4
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../chapter5.html">
            
                <a href="../chapter5.html">
            
                    
                    chapter5
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../chapter6.html">
            
                <a href="../chapter6.html">
            
                    
                    chapter6
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../chapter6/section1.html">
            
                <a href="../chapter6/section1.html">
            
                    
                    section1
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../chapter7.html">
            
                <a href="../chapter7.html">
            
                    
                    chapter7
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../chapter8.html">
            
                <a href="../chapter8.html">
            
                    
                    chapter8
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../chapter9.html">
            
                <a href="../chapter9.html">
            
                    
                    chapter9
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../chapter10.html">
            
                <a href="../chapter10.html">
            
                    
                    chapter10
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../chapter11.html">
            
                <a href="../chapter11.html">
            
                    
                    chapter11
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../chapter12.html">
            
                <a href="../chapter12.html">
            
                    
                    chapter12
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../chapter13.html">
            
                <a href="../chapter13.html">
            
                    
                    chapter13
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../chapter14.html">
            
                <a href="../chapter14.html">
            
                    
                    chapter14
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="../chapter15.html">
            
                <a href="../chapter15.html">
            
                    
                    chapter15
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.16.1" data-path="../chapter15/section1.html">
            
                <a href="../chapter15/section1.html">
            
                    
                    section15-1
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >section4</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x751F;&#x6210;&#x955C;&#x50CF;&#x6587;&#x4EF6;">&#x751F;&#x6210;&#x955C;&#x50CF;&#x6587;&#x4EF6;</h1>
<p>&#x6CE8;&#x610F;&#x4E0D;&#x8981;&#x5C11;&#x4E86;&#x6700;&#x540E;&#x4E00;&#x4E2A;&#x53C2;&#x6570;&#xFF0C;&#x8868;&#x793A;&#x76EE;&#x5F55;</p>
<p> $ docker build -t docker-whale</p>
<p>&quot;docker build&quot; requires exactly 1 argument(s).</p>
<p>See &apos;docker build --help&apos;.</p>
<p>Usage:  docker build [OPTIONS] PATH | URL | -</p>
<p>Build an image from a Dockerfile
&#x6B63;&#x786E;&#xFF08;&#x4F46;&#x662F;&#x6E90;&#x6709;&#x95EE;&#x9898;&#xFF09;
 $ docker build -t docker-whale .</p>
<p>Sending build context to Docker daemon 2.048 kB</p>
<p>Step 1/3 : FROM docker/whalesay:latest</p>
<p> ---&gt; 6b362a9f73eb</p>
<p>Step 2/3 : RUN apt-get -y update &amp;&amp; apt-get install -y fortunes</p>
<p> ---&gt; Running in 4abd882905f9</p>
<p>Ign <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty InRelease</p>
<p>Get:1 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty-updates InRelease [65.9 kB]</p>
<p>Get:2 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty-security InRelease [65.9 kB]</p>
<p>Hit <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty Release.gpg</p>
<p>Hit <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty Release</p>
<p>Get:3 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty-updates/main Sources [489 kB]</p>
<p>Get:4 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty-updates/main amd64 Packages [522 kB]</p>
<p>Get:5 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty-updates/restricted amd64 Packages [522 kB]</p>
<p>Get:6 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty-updates/restricted Sources [489 kB]</p>
<p>Get:7 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty-updates/universe amd64 Packages [522 kB]</p>
<p>Get:8 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty-security/main amd64 Packages [522 kB]</p>
<p>Get:9 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty-updates/universe Sources [489 kB]</p>
<p>Get:10 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty-security/restricted amd64 Packages [522 kB]</p>
<p>Get:11 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty-security/universe amd64 Packages [522 kB]</p>
<p>Get:12 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty-security/main Sources [489 kB]</p>
<p>Get:13 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty/main amd64 Packages [522 kB]</p>
<p>Get:14 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty/restricted amd64 Packages [522 kB]</p>
<p>Get:15 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty-security/restricted Sources [489 kB]</p>
<p>Get:16 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty/universe amd64 Packages [522 kB]</p>
<p>Get:17 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty-security/universe Sources [489 kB]</p>
<p>Get:18 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty/main Sources [489 kB]</p>
<p>Get:19 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty/restricted Sources [489 kB]</p>
<p>Get:20 <a href="http://archive.ubuntu.com" target="_blank">http://archive.ubuntu.com</a> trusty/universe Sources [489 kB]</p>
<p>W: Size of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_main_binary-amd64_Packages.gz is not what the server reported 522218 1743009</p>
<p>Fetched 9228 kB in 14s (643 kB/s)</p>
<p>W: Size of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_main_source_Sources.gz is not what the server reported 488526 1334581</p>
<p>W: Size of file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_trusty_universe_source_Sources.gz is not what the server reported 488526 7925687</p>
<p>W: Failed to fetch <a href="http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/source/Sources" target="_blank">http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/source/Sources</a>  Hash Sum mismatch</p>
<p>W: Failed to fetch <a href="http://archive.ubuntu.com/ubuntu/dists/trusty-updates/restricted/source/Sources" target="_blank">http://archive.ubuntu.com/ubuntu/dists/trusty-updates/restricted/source/Sources</a>  Hash Sum mismatch</p>
<p>W: Failed to fetch <a href="http://archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/source/Sources" target="_blank">http://archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/source/Sources</a>  Hash Sum mismatch</p>
<p>W: Failed to fetch <a href="http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-amd64/Packages" target="_blank">http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-amd64/Packages</a>  Hash Sum mismatch</p>
<p>W: Failed to fetch <a href="http://archive.ubuntu.com/ubuntu/dists/trusty-updates/restricted/binary-amd64/Packages" target="_blank">http://archive.ubuntu.com/ubuntu/dists/trusty-updates/restricted/binary-amd64/Packages</a>  Hash Sum mismatch</p>
<p>W: Failed to fetch <a href="http://archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-amd64/Packages" target="_blank">http://archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-amd64/Packages</a>  Hash Sum mismatch</p>
<p>W: Failed to fetch <a href="http://archive.ubuntu.com/ubuntu/dists/trusty-security/main/source/Sources" target="_blank">http://archive.ubuntu.com/ubuntu/dists/trusty-security/main/source/Sources</a>  Hash Sum mismatch</p>
<p>W: Failed to fetch <a href="http://archive.ubuntu.com/ubuntu/dists/trusty-security/restricted/source/Sources" target="_blank">http://archive.ubuntu.com/ubuntu/dists/trusty-security/restricted/source/Sources</a>  Hash Sum mismatch</p>
<p>W: Failed to fetch <a href="http://archive.ubuntu.com/ubuntu/dists/trusty-security/universe/source/Sources" target="_blank">http://archive.ubuntu.com/ubuntu/dists/trusty-security/universe/source/Sources</a>  Hash Sum mismatch</p>
<p>W: Failed to fetch <a href="http://archive.ubuntu.com/ubuntu/dists/trusty-security/main/binary-amd64/Packages" target="_blank">http://archive.ubuntu.com/ubuntu/dists/trusty-security/main/binary-amd64/Packages</a>  Hash Sum mismatch</p>
<p>W: Failed to fetch <a href="http://archive.ubuntu.com/ubuntu/dists/trusty-security/restricted/binary-amd64/Packages" target="_blank">http://archive.ubuntu.com/ubuntu/dists/trusty-security/restricted/binary-amd64/Packages</a>  Hash Sum mismatch</p>
<p>W: Failed to fetch <a href="http://archive.ubuntu.com/ubuntu/dists/trusty-security/universe/binary-amd64/Packages" target="_blank">http://archive.ubuntu.com/ubuntu/dists/trusty-security/universe/binary-amd64/Packages</a>  Hash Sum mismatch</p>
<p>W: Failed to fetch <a href="http://archive.ubuntu.com/ubuntu/dists/trusty/main/source/Sources" target="_blank">http://archive.ubuntu.com/ubuntu/dists/trusty/main/source/Sources</a>  Hash Sum mismatch</p>
<p>W: Failed to fetch <a href="http://archive.ubuntu.com/ubuntu/dists/trusty/restricted/source/Sources" target="_blank">http://archive.ubuntu.com/ubuntu/dists/trusty/restricted/source/Sources</a>  Hash Sum mismatch</p>
<p>W: Failed to fetch <a href="http://archive.ubuntu.com/ubuntu/dists/trusty/universe/source/Sources" target="_blank">http://archive.ubuntu.com/ubuntu/dists/trusty/universe/source/Sources</a>  Hash Sum mismatch</p>
<p>W: Failed to fetch <a href="http://archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/Packages" target="_blank">http://archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/Packages</a>  Hash Sum mismatch</p>
<p>W: Failed to fetch <a href="http://archive.ubuntu.com/ubuntu/dists/trusty/restricted/binary-amd64/Packages" target="_blank">http://archive.ubuntu.com/ubuntu/dists/trusty/restricted/binary-amd64/Packages</a>  Hash Sum mismatch</p>
<p>W: Failed to fetch <a href="http://archive.ubuntu.com/ubuntu/dists/trusty/universe/binary-amd64/Packages" target="_blank">http://archive.ubuntu.com/ubuntu/dists/trusty/universe/binary-amd64/Packages</a>  Hash Sum mismatch</p>
<p>E: Some index files failed to download. They have been ignored, or old ones used instead.</p>
<p>The command &apos;/bin/sh -c apt-get -y update &amp;&amp; apt-get install -y fortunes&apos; returned a non-zero code: 100</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="section3.html" class="navigation navigation-prev " aria-label="Previous page: section3">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="section5.html" class="navigation navigation-next " aria-label="Next page: section5">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"section4","level":"1.2.4","depth":2,"next":{"title":"section5","level":"1.2.5","depth":2,"path":"chapter1/section5.md","ref":"chapter1/section5.md","articles":[]},"previous":{"title":"section3","level":"1.2.3","depth":2,"path":"chapter1/section3.md","ref":"chapter1/section3.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"chapter1/section4.md","mtime":"2017-04-28T12:10:14.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-04-28T12:19:03.600Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

